package biz;

import exception.BizException;
import exception.CheckException;

public class BizFonction extends AbstractBizObject implements Fonction {

	private int id;
	private String designation;
	private int droits;
	private boolean administrateur;
	private boolean superadministrateur;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getDesignation() {
		return designation;
	}

	public void setDesignation(String designation) {
		this.designation = designation;
	}

	public int getDroits() {
		return droits;
	}

	public void setDroits(int droits) {
		this.droits = droits;
	}

	public boolean isAdministrateur() {
		return administrateur;
	}

	public void setAdministrateur(boolean administrateur) {
		this.administrateur = administrateur;
	}

	public boolean isSuperadministrateur() {
		return superadministrateur;
	}

	public void setSuperadministrateur(boolean superadministrateur) {
		this.superadministrateur = superadministrateur;
	}

	public final void checkMe() {
		try {

		} catch (CheckException e) {
			throw new BizException(e.getMessage());
		}
	}
}